package com.joey.concurrency.example.threadLocal;

import lombok.extern.slf4j.Slf4j;

import javax.jws.WebService;
import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * @Author hyy
 **/
@Slf4j
//@WebServlet(urlPatterns = "/threadLocal/test")
public class ThreadLocalHttpServlet implements Servlet{
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        log.info("ThreadLocalHttpServlet -- init");
    }

    @Override
    public ServletConfig getServletConfig() {
        log.info("ThreadLocalHttpServlet -- getServletConfig");
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        log.info("ThreadLocalHttpServlet -- service");
    }

    @Override
    public String getServletInfo() {
        log.info("ThreadLocalHttpServlet -- getServletInfo");
        return null;
    }

    @Override
    public void destroy() {
        log.info("ThreadLocalHttpServlet -- destroy");

    }
}
